
public class Java_4 {
	public static void main(String[] args) {
		double a, b;
		for (int i = 1; i < 10000; i++) {
			if (Math.sqrt((long) (i + 100)) % 1 == 0 && Math.sqrt((long) (i + 100 + 168)) % 1 == 0) {
				System.out.println(i);
			}
		}
	}
}
